<template>
  <li class="dropdown-option" :class="{ 'is-disabled': disabled }">
    <slot></slot>
  </li>
</template>

<script lang="ts">
import { defineComponent } from "vue";

export default defineComponent({
  name: "DropdownItem",
  props: {
    disabled: {
      type: Boolean,
      default: false
    }
  }
});
</script>

<style>
/* .dropdown-option {
  width: 54px;
} */
.dropdown-option.is-disabled * {
  color: #6c757d;
  /* 设置元素是否对指针事件做出反应： */
  pointer-events: none;
  background: transparent;
}
</style>
